<?php

	class Community_BasicUser
	{
		static private $roles = null;
		
		static public function addRoles()
		{
		    if (func_num_args() == 0) return;

			$roles = (is_array(func_get_arg(0))) ? func_get_arg(0) : func_get_args();
			
			foreach ($roles AS $role)
			{
				self::$roles[$role] = 'ok';
			}
		}
		
		static public function removeRole($role)
		{
			unset(self::$roles[$role]);
		}
		
		static public function hasRole($role)
		{
			return isset(self::$roles[$role]);
		}
	
	}